﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Maticsoft.Web.Admin.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 500px;
            background-color: #00FFFF;
            margin-bottom: 20px;
        }
        .style2
        {
            width: 100px;
            background-color: #D7FFFF;
        }
        .style9
        {
            background-color: #FFFFFF;
            text-align: left;
        }
        .style10
        {
            width: 100px;
            background-color: #D7FFFF;
            height: 100px;
        }
        .style11
        {
            background-color: #FFFFFF;
            text-align: left;
            height: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content">  <div>
        
        <br /></br>
        <asp:Button ID="Button2" runat="server" Text="获取投稿列表" onclick="Button2_Click" 
            Visible="False" />
&nbsp;
        <br />
        <center>
            <table cellspacing="1" class="style1" border="0" cellpadding="5">
                <tr>
                    <td class="style10">
                        获取统计列表：</td>
                    <td class="style11">
                        <asp:ListBox ID="ListBox1" runat="server" Height="155px" Width="225px">
                        </asp:ListBox>
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="获取待统计列表" 
            Height="39px" />
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        地址前缀：</td>
                    <td class="style9">
                        <asp:TextBox ID="TextBox1" runat="server" Width="307px">D:\epaper\gzrb\html\</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
       新记者默认统计规则ID：</td>
                    <td class="style9">
                        <asp:TextBox ID="TextBox2" runat="server" Width="82px">5</asp:TextBox>
                        （自动添加新记者时，使用的默认统计规则。）</td>
                </tr>
                <tr>
                    <td class="style2">
                   &nbsp;</td>
                    <td class="style9">
                        <asp:CheckBox ID="CheckBox3" runat="server" Text="自动添加新记者" />
                        （勾选自动添加数据库没有的记者。）</td>
                </tr>
                <tr>
                    <td class="style2">
                   &nbsp;</td>
                    <td class="style9">
                        <asp:CheckBox ID="CheckBox1" runat="server" Text="忽略数据库中没有的记者" />
                        （如果数据库中没有该记者，则忽略。）</td>
                </tr>
                <tr>
                    <td class="style2">
                   &nbsp;</td>
                    <td class="style9">
                        <asp:CheckBox ID="CheckBox2" runat="server" Text="忽略无记者或新华社的新闻" 
                            Checked="True" />
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                   &nbsp;</td>
                    <td class="style9">
                        <asp:Button ID="Button5" runat="server" onclick="Button5_Click" Text="获取列表" 
           Visible="False" />
                    </td>
                </tr>
            </table>
            <h1>待审核列表</h1>
        </center>
 </div>
        <center>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" EnableModelValidation="True" ForeColor="#333333" 
            GridLines="None" onrowcommand="GridView1_RowCommand">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="date" HeaderText="投稿时间" />
                <asp:BoundField DataField="banmian" HeaderText="版面" />
                <asp:BoundField DataField="title" HeaderText="标题" />
                <asp:BoundField DataField="txtnum" HeaderText="字数" />
                <asp:BoundField DataField="txtoauth" HeaderText="作者" />
                <asp:BoundField DataField="imgnum" HeaderText="图片" />
                <asp:BoundField DataField="imgoauth" HeaderText="摄影" />
                <asp:BoundField DataField="isnew" HeaderText="新记者" />
                <asp:TemplateField HeaderText="查看原文">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("url") %>' 
                            Text="点击查看" Target="_blank"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <EditItemTemplate>
                        没有需要处理的信息<br />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Button ID="Button3" runat="server" Text='<%# Eval("btname") %>' 
                            onclick="Button3_Click" CommandArgument='<%# Eval("isnew") %>' 
                            CommandName="add" />
                        &nbsp;&nbsp;
                        <asp:Button ID="Button4" runat="server" Text="入库" 
                            Visible='<%# Eval("isshow") %>' onclick="Button4_Click" 
                            style="height: 21px" CommandArgument='<%# Eval("index") %>' 
                            CommandName="insert" />
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("index") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView></center>
    </p></div>
</asp:Content>
